<template>
  <div class="personal-box">
    <div class="personal-box-item1">
      <img :src="src" alt="" />
      <div>{{ content }}</div>
    </div>
    <div class="personal-box-item2" v-if="isshow">
      <img :src="leftSrc" alt="" />
    </div>
  </div>
</template>

<script>
  export default {
    props: ['content', 'tag', 'src', 'isshow', 'leftSrc']
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .personal-box{
    height: 180px;
    width: 260px;
    display: inline-block;
    margin-bottom: 20px;
  }
  .personal-box-item1{
    width: 180px;
    display: inline-block;
  }
  .personal-box-item1 div{
    font-size: 14px;
  }

  .personal-box-item2{
    width: 60px;
    height: 60px;
    margin-top: 40px;
    display: inline-block;
    vertical-align: top;
  }

  @media screen and (max-width: 1024px) {
    /*当屏幕尺寸小于600px时，应用下面的CSS样式*/
    .personal-box{
      width: 400px;
      display: inline-block;
      margin-bottom: 20px;
    }
    .personal-box-item2 {
      display: none;
    }
  }

</style>
